﻿using System;
using Data.Common;
using Data.Model;

namespace DataAccess.AccountManage
{
    public interface IAccount
    {
        jsh_account GetAccount(long id);
        long CreateUpdateAccount(jsh_account account);
        ResultInfo<bool> UpdateAccountPassword(long accountid, string password);
        ResultInfo<bool> UpdateAccountStatus(long accountid, string status);
        ResultInfo<bool> OpenAccount(jsh_account jshAccount, Decimal initialMoney, Decimal mountMoney,Decimal receiptMoney, string operateaddress, Int64 operateaddressid, string operatepsamid);
        ResultInfo<jsh_account> GetAccount(string cpuid);
        ResultInfo<jsh_account> GetAccountWithIdCard(string idCardNo);
        ResultInfo<PagingDataSet<jsh_account>> GetAccounts(int pageIndex, int pageSize, string userName, string idNo,string cpuno);
    }
}
